<!-- ру -->
<ul class="subcategories" id="sub_articles" <?php echo ($sf_context->getModuleName()!='articles')?'style="display:none;"':''?>>
	<?php if(!empty($categories)) { ?>
		<?php foreach($categories as $Category) { ?>
			
			
			<li <?php if($Category->getTitle() == $categories[count($categories)-1]->getTitle()) echo 'style="border:none;"' ?> > <?php echo link_to($Category['title'],'view_articles_category',$Category); ?></li>
			
			
		<?php }	} else { ?>
		<li>No categories. Please fill it via Admin Panel</li>
	<?php } ?>
</ul>